package com.gimi.cloud.bbp.app.consumer.feign.mall;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.gimi.cloud.bbp.dto.mall.MallMessageDTO;

import feign.Headers;

@FeignClient(name = "bbp-app-service")
public interface MallMessageFeignService {

	@Headers({"Content-Type: application/json","Accept: application/json"})
    @RequestMapping(value = "/mall/message/getMessageListByReceiveUser", method = RequestMethod.POST)
	String getMessageListByReceiveUser(MallMessageDTO dto);
	
	@Headers({"Content-Type: application/json","Accept: application/json"})
    @RequestMapping(value = "/mall/message/userDelMessageByMeId", method = RequestMethod.POST)
	String userDelMessageByMeId(MallMessageDTO dto);
	
	@Headers({"Content-Type: application/json","Accept: application/json"})
    @RequestMapping(value = "/mall/message/getMessageByMeId", method = RequestMethod.POST)
	String getMessageByMeId(MallMessageDTO dto);
	
	@Headers({"Content-Type: application/json","Accept: application/json"})
    @RequestMapping(value = "/mall/message/getMessageByUserIdAndStatus", method = RequestMethod.POST)
	String getMessageByUserIdAndStatus(MallMessageDTO dto);
}
